const { gql } = require("apollo-server-express");
const typeDefs = gql`
type User{
    username:String,
    password:String,
    email:String,
    token:String
}
type Query{
    users:[User!]!,
    currentUser:User
}
input LoginInput{
      email:String!,
      password:String!
}
input CreateUserInput{
    email:String,
    username:String,
    password:String
}
type Mutation{
    login(user:LoginInput):User
    createUser(user:CreateUserInput):User
}
`;

module.exports = typeDefs;
